<template>
  <j-modal :title="title" :width="600" :visible="visible" :maskClosable="false" @close="close" cancelText="关闭">
    <a-form-model :label-col="labelCol" :wrapper-col="wrapperCol" ref="form" :rules="validatorRules" :model="model">
      <a-form-model-item label="模型名称" prop="modelName">
        <a-input :disabled="true" v-model="model.modelName"></a-input>
      </a-form-model-item>
      <a-form-model-item label="提交人名称" prop="userName">
        <a-input :disabled="true" v-model="model.userName"></a-input>
      </a-form-model-item>
      <a-form-model-item label="提交时间" prop="submitTime">
        <a-input :disabled="true" v-model="model.submitTime"></a-input>
      </a-form-model-item>
      <a-form-model-item label="状态" prop="status">
        <j-dict-select-tag :disabled="true" v-model="model.status" placeholder="请选择状态"
          dict-code="model_approve_status" />
      </a-form-model-item>
      <a-form-model-item label="备注" prop="remarks">
        <a-textarea :disabled="true" v-model="model.remarks"></a-textarea>
      </a-form-model-item>
    </a-form-model>
  </j-modal>
</template>
<script>
export default {
  name: 'CheckAndEditModel',
  components: {
  },
  data() {
    return {
      labelCol: { span: 4 },
      wrapperCol: { span: 14 },
      dataSource: [],
      title: '',
      visible: false,
      isCheck: false,
      model: {},
    }
  },
  created() {
  },
  methods: {
    check(record) {
      this.model = Object.assign({}, record)
      this.visible = true
    },
    close(isSubmit) {
      if (isSubmit) {
        this.saveData()
      } else {
        this.visible = false
      }
    },
  }
}
</script>

<style lang="less" scoped>
.ant-input {
  width: 360px;
}
</style>
